package com.spring.aoppost;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestApp {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class);
		IUserService userService = (IUserService) ctx.getBean("userService");

		userService.showName();
	}
}
